package TwT2;

public abstract class Mainboard {

    private String Name;
    private String speed;
    private double price;

    public Mainboard(){}
    public Mainboard(String Name,String speed,double price){
        this.Name = Name;
        this.speed = speed;
        this.price = price;
    }

    String getName(){
        return this.Name;
    }
    String getSpeed(){
        return this.speed;
    }
    double getPrice(){
        return this.price;
    }

    void work(){
        System.out.println(this.Name + "+work");
    }

    public void Display(){
        System.out.println("Name:" + this.Name);
        System.out.println("speed:" + this.speed);
        System.out.println("price:" + this.price);
    }

    public static void main(String[] args) {
        Asus Z79 = new Asus("Z79","10GB/s",1400);
        Z79.Display();
        Z79.work();
        Gigabyte GAZ170X = new Gigabyte("GAZ170X","40GB/S",2000);
        GAZ170X.Display();
        GAZ170X.work();
    }

}
